package com.hskn.hss.module.tlequip.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.ExcelReaderDataException;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.tlemergentplan.entity.TlEmergentPlan;
import com.hskn.hss.module.tlemployee.entity.TlEmployee;
import com.hskn.hss.module.tlequip.entity.TlEquip;
import com.hskn.hss.module.tlequip.vo.TlEquipExcelOutVO;
import com.hskn.hss.module.user.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-11
 */
public interface ITlEquipService extends IService<TlEquip> {

    AjaxResult insert(TlEquip tlEquip) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;
    AjaxResult updatebyids(TlEquip tlEquip) throws HssException;
    AjaxResult deletebyid(JSONObject params) throws HssException;
    void excelReader(List<TlEquip> tlEquipList) throws ExcelReaderDataException;

    AjaxResult deletebatchbyid(TlEquip tlEquip) throws HssException;

    JSONObject getList(BaseEntity entity, JSONObject params) throws HssException;

    TlEquip getDetail(JSONObject params) throws HssException;

    List getSelectList(JSONObject params);

    Map<String, TlEquip> getTlEquipMap(QueryWrapper<TlEquip> tlEquipQueryWrapper);

    Map<String, TlEquip> getTlEquipMapByBindobjidMap(QueryWrapper<TlEquip> tlEquipQueryWrapper);

    Map<String, TlEquip> getTlEquipMapByEquipcodeMap(QueryWrapper<TlEquip> tlEquipQueryWrapper);

    List<TlEquipExcelOutVO> getEquipWithChannel();
}
